package com.neusoft.elmboot.service.impl;

import com.neusoft.elmboot.mapper.ClassifyMapper;
import com.neusoft.elmboot.po.Classify;
import com.neusoft.elmboot.service.ClassifyService;
import com.neusoft.elmboot.util.APIResponse;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class ClassifyServiceImpl implements ClassifyService{

    @Resource
    ClassifyMapper classifyMapper;


    @Override
    public APIResponse getClassifyList(Integer businessId) {
        List<Classify> list =  classifyMapper.getList(businessId);
        return APIResponse.success(list);
    }
}
